package cn.vison.service;

import cn.vison.entity.User;
import cn.vison.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by vison on 2017/7/7.
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public void addUser(){
        User user = new User();
        user.setPassword("123123");
        user.setName("傻逼");
        userMapper.insertUser(user);
    }

}
